package com.dlq.goods.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dlq.goods.dao.GoodsDao;
import com.dlq.goods.pojo.GoodType;
import com.dlq.goods.pojo.Goods;
import com.dlq.goods.pojo.Supplier;

@Service
public class GoodsServiceImpl implements GoodsService {

	@Autowired
	private GoodsDao goodsDao;

	@Override
	public List<Supplier> findsupplier_list(Supplier supplier) {
		// TODO Auto-generated method stub
		return goodsDao.findsupplier_list(supplier);
	}

	@Override
	public void delsupplierById(Integer id) {
		// TODO Auto-generated method stub
		goodsDao.delsupplierById(id);
	}

	@Override
	public void add_supplier(Supplier supplier) {
		// TODO Auto-generated method stub
		goodsDao.add_supplier(supplier);
	}

	@Override
	public Supplier findsupplierById(Integer id) {
		// TODO Auto-generated method stub
		return goodsDao.findsupplierById(id);
	}

	@Override
	public void upd_supplier(Supplier supplier) {
		// TODO Auto-generated method stub
		goodsDao.upd_supplier(supplier);
	}

	@Override
	public List<GoodType> findgoodType_list(GoodType gt) {
		// TODO Auto-generated method stub
		return goodsDao.findgoodType_list(gt);
	}
}
